package mysqlModel

import "gorm.io/gorm"

//人员关系
type Contact struct {
	gorm.Model
	OwnerId 	uint	`gorm:"column:owner_id"`//谁的关系信息
	TargetId 	uint	`gorm:"column:target_id"`//对应的谁
	Type 		int		`gorm:"column:type"`//对应的类型 1好友 2群组
	Desc 		string	`gorm:"column:desc"`
}

func (table *Contact) TableName() string{
	return "contact"
}
